-- GENERATED SPELL FOR [Eldreth Phantasm] --


function spell0_11475(pUnit, Event) --@Call of the Grave,n/a--
pUnit:FullCastSpellOnTarget(17831,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11475', 656, 1)
end

function spell1_11475(pUnit, Event) --@Shrink,n/a--
pUnit:FullCastSpellOnTarget(15802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11475', 3000, 1)
end

function Sorts_11475(pUnit, Event)
local choix_sorts_11475 = math.random(0, 1)
if choix_sorts_11475 == 0 then
pUnit:RegisterEvent('spell0_11475', 1, 1)
end
if choix_sorts_11475 == 1 then
pUnit:RegisterEvent('spell1_11475', 1, 1)
end
end

function mob11475_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11475', math.random(1500, 3000), 1)
end

function mob11475_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11475_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11475_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11475, 1, 'mob11475_Action')
RegisterUnitEvent(11475, 2, 'mob11475_Leave')
RegisterUnitEvent(11475, 3, 'mob11475_Kill')
RegisterUnitEvent(11475, 4, 'mob11475_Die')
